home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_jeep_cutscene_bab.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
69 lines
# Jones 3D Cog Script
#
# Jeep_Cutscene_bab.cog
#
# [PKM]
#
# (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ========================================================================================
symbols
message created
message user0
message user1
thing jeep local
int jeepMesh local
int meshRef local
model jeepGasCan=gascan_bab_jeep.3do local
end
# ========================================================================================
code
created:
jeep = GetSenderRef();
jeepMesh = GetMeshByName(jeep, "jeep_body");
meshRef = SetThingMesh(jeep, jeepMesh, jeepGasCan, 0);
SetThingUserData(jeep, meshRef);
return;
user0:
jeep = GetParam(0);
meshRef = GetThingUserData(Jeep);
if (meshRef != -1)
{
// The gas can is currently attached to the jeep - remove it.
RestoreThingMesh(jeep, meshRef);
SetThingUserData(jeep, -1);
}
return;
user1:
jeep = GetParam(0);
meshRef = GetThingUserData(Jeep);
if (meshRef != -1)
{
// The gas can is currently attached to the jeep - remove it.
RestoreThingMesh(jeep, meshRef);
SetThingUserData(jeep, -1);
}
// The gas can is not on the jeep - put it back.
jeepMesh = GetMeshByName(jeep, "jeep_body");
meshRef = SetThingMesh(jeep, jeepMesh, jeepGasCan, 0);
SetThingUserData(jeep, meshRef);
return;
end